

package com.hazelcast.internal.partition;

/**
 * Interceptor for partition replica changes.
 */
public interface PartitionReplicaInterceptor {
    /**
     * Called when a new partition arrangement has been set and a partition replica has been changed.
     */
    void replicaChanged(int partitionId, int replicaIndex, PartitionReplica oldReplica, PartitionReplica newReplica);
}
